<div id="dashboard">
    <!-- BEGIN DASHBOARD STATS -->
    <div class="row-fluid">
        <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
            <div class="dashboard-stat blue">
                <div class="visual">
                    <i class="icon-comments"></i>
                </div>
                <div class="details">
                    <div class="number">
                        <?php echo $totalCustomers ?>
                    </div>
                    <div class="desc">                           
                        Гишүүн
                    </div>
                </div>
                <a class="more" href="<?php echo url_for('@customer_list') ?>">
                    Дэлгэрэнгүй... <i class="m-icon-swapright m-icon-white"></i>
                </a>                 
            </div>
        </div>

        <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
            <div class="dashboard-stat yellow">
                <div class="visual">
                    <i class="icon-bar-chart"></i>
                </div>
                <div class="details">
                    <div class="number"><?php echo number_format($salesTotalToday) ?>₮</div>
                    <div class="desc">Өнөөдрийн орлого</div>
                </div>
                <a class="more" href="<?php echo url_for('@outcome_list') ?>">
                    Дэлгэрэнгүй... <i class="m-icon-swapright m-icon-white"></i>
                </a>                 
            </div>
        </div>

        <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
            <div class="dashboard-stat purple">
                <div class="visual">
                    <i class="icon-bar-chart"></i>
                </div>
                <div class="details">
                    <div class="number"><?php echo number_format($salesTotalThisMonth) ?>₮</div>
                    <div class="desc">Энэ сарын орлого</div>
                </div>
                <a class="more" href="<?php echo url_for('@outcome_list?dateBegin=' . date('Y-m-01') . '&dateEnd=' . date('Y-m-t')) ?>">
                    Дэлгэрэнгүй... <i class="m-icon-swapright m-icon-white"></i>
                </a>                 
            </div>
        </div>

        <div class="span3 responsive" data-tablet="span6" data-desktop="span3">
            <div class="dashboard-stat green">
                <div class="visual">
                    <i class="icon-shopping-cart"></i>
                </div>
                <div class="details">
                    <div class="number"><?php echo number_format($salesCountThisMonth) ?></div>
                    <div class="desc">Энэ сарын худалдан авалт</div>
                </div>
                <a class="more" href="#">
                    Дэлгэрэнгүй... <i class="m-icon-swapright m-icon-white"></i>
                </a>                 
            </div>
        </div>
    </div>
    <!-- END DASHBOARD STATS -->

    <div class="row-fluid">
        <div class="span6">
            <?php include_component('homepage', 'dbSalesMonthly'); ?>
        </div>
    </div>

</div>

<script>
    $(function() {

    });
</script>